<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title> - jsFiddle demo</title>
</head>
<body>
  <p><img src="" id="picasa"></p>
<script type='text/javascript'>//<![CDATA[ 

function insertScript(query) {
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = query;
    document.body.appendChild(script);
}

function getPhoto(response) {
    document.getElementById("picasa").src = response.feed.entry[0].content.src;
}

function selectRandomPhoto() {
    insertScript("https://picasaweb.google.com/data/feed/api" +
                 "/user/113370727965830303581" +
                 "/album/HDRZMuzeumWojskaPolskiego" +
                 "?alt=json-in-script&callback=getPhoto&max-results=1" +
                 "&start-index=" + Math.floor(1 + Math.random() * 25));
}

selectRandomPhoto();
//]]>  
</script>
</body>
</html>